.class public Les/hb;
.super Ljava/lang/Object;
.source "BitmapMingler.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/hb$a;
    }
.end annotation


# instance fields
.field private a:I

.field private b:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/high16 v0, 0x400000

    .line 2
    iput v0, p0, Les/hb;->a:I

    return-void
.end method

.method private a(Ljava/util/List;Ljava/util/List;Ljava/util/List;Les/hb$a;)Ljava/lang/String;
    .locals 29
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/media/util/y;",
            ">;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/List<",
            "Landroid/util/Pair<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Integer;",
            ">;>;",
            "Les/hb$a;",
            ")",
            "Ljava/lang/String;"
        }
    .end annotation

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p3

    move-object/from16 v3, p4

    .line 31
    invoke-interface/range {p2 .. p2}, Ljava/util/List;->size()I

    move-result v4

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    :goto_0
    if-ge v6, v4, :cond_0

    .line 32
    invoke-interface {v1, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/esfile/screen/recorder/media/util/y;

    .line 33
    invoke-virtual {v8}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v8

    invoke-static {v7, v8}, Ljava/lang/Math;->max(II)I

    move-result v7

    add-int/lit8 v6, v6, 0x1

    goto :goto_0

    .line 34
    :cond_0
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    const/4 v8, 0x0

    :goto_1
    const/high16 v9, 0x3f800000    # 1.0f

    if-ge v8, v4, :cond_1

    .line 35
    invoke-interface {v1, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lcom/esfile/screen/recorder/media/util/y;

    int-to-float v11, v7

    mul-float v11, v11, v9

    .line 36
    invoke-virtual {v10}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v9

    int-to-float v9, v9

    div-float/2addr v11, v9

    invoke-static {v11}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v9

    invoke-interface {v6, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v8, v8, 0x1

    goto :goto_1

    :cond_1
    const/4 v1, 0x0

    const/4 v8, 0x0

    :goto_2
    if-ge v1, v4, :cond_3

    .line 37
    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Landroid/util/Pair;

    if-nez v10, :cond_2

    goto :goto_3

    .line 38
    :cond_2
    iget-object v11, v10, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v11, Ljava/lang/Integer;

    invoke-virtual {v11}, Ljava/lang/Integer;->intValue()I

    move-result v11

    iget-object v10, v10, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v10, Ljava/lang/Integer;

    invoke-virtual {v10}, Ljava/lang/Integer;->intValue()I

    move-result v10

    sub-int/2addr v11, v10

    int-to-float v10, v11

    invoke-interface {v6, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/lang/Float;

    invoke-virtual {v11}, Ljava/lang/Float;->floatValue()F

    move-result v11

    mul-float v10, v10, v11

    float-to-int v10, v10

    mul-int v10, v10, v7

    add-int/2addr v8, v10

    :goto_3
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 39
    :cond_3
    iget v1, v0, Les/hb;->a:I

    if-le v8, v1, :cond_4

    if-lez v1, :cond_4

    int-to-float v8, v8

    mul-float v8, v8, v9

    int-to-float v1, v1

    div-float/2addr v8, v1

    float-to-double v8, v8

    .line 40
    invoke-static {v8, v9}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v8

    invoke-static {v8, v9}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v8

    double-to-int v1, v8

    goto :goto_4

    :cond_4
    const/4 v1, 0x1

    .line 41
    :goto_4
    div-int/2addr v7, v1

    const/4 v8, 0x0

    :goto_5
    if-ge v8, v4, :cond_6

    .line 42
    invoke-interface {v2, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Landroid/util/Pair;

    if-nez v9, :cond_5

    goto :goto_6

    .line 43
    :cond_5
    invoke-interface {v6, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/lang/Float;

    invoke-virtual {v10}, Ljava/lang/Float;->floatValue()F

    move-result v10

    int-to-float v11, v1

    div-float/2addr v10, v11

    .line 44
    invoke-static {v10}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v11

    invoke-interface {v6, v8, v11}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 45
    iget-object v11, v9, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v11, Ljava/lang/Integer;

    invoke-virtual {v11}, Ljava/lang/Integer;->intValue()I

    move-result v11

    int-to-float v11, v11

    mul-float v11, v11, v10

    float-to-int v11, v11

    .line 46
    iget-object v9, v9, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v9, Ljava/lang/Integer;

    invoke-virtual {v9}, Ljava/lang/Integer;->intValue()I

    move-result v9

    int-to-float v9, v9

    mul-float v9, v9, v10

    float-to-int v9, v9

    .line 47
    new-instance v10, Landroid/util/Pair;

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v11

    invoke-static {v9}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v9

    invoke-direct {v10, v11, v9}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    .line 48
    invoke-interface {v2, v8, v10}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    :goto_6
    add-int/lit8 v8, v8, 0x1

    goto :goto_5

    :cond_6
    const/4 v1, 0x0

    const/4 v4, 0x0

    .line 49
    :goto_7
    invoke-interface/range {p3 .. p3}, Ljava/util/List;->size()I

    move-result v8

    if-ge v1, v8, :cond_7

    .line 50
    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Landroid/util/Pair;

    .line 51
    iget-object v9, v8, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v9, Ljava/lang/Integer;

    invoke-virtual {v9}, Ljava/lang/Integer;->intValue()I

    move-result v9

    iget-object v8, v8, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v8, Ljava/lang/Integer;

    invoke-virtual {v8}, Ljava/lang/Integer;->intValue()I

    move-result v8

    sub-int/2addr v9, v8

    add-int/2addr v4, v9

    add-int/lit8 v1, v1, 0x1

    goto :goto_7

    .line 52
    :cond_7
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "createBitmap width:"

    invoke-virtual {v1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v15, "BitmapMingler"

    invoke-static {v15, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 53
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "createBitmap totalHeight:"

    invoke-virtual {v1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v15, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 54
    :try_start_0
    new-instance v1, Lcom/esfile/screen/recorder/picture/pngj/h;

    new-instance v8, Ljava/io/File;

    iget-object v9, v0, Les/hb;->b:Ljava/lang/String;

    invoke-direct {v8, v9}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    new-instance v9, Lcom/esfile/screen/recorder/picture/pngj/c;

    const/16 v10, 0x8

    invoke-direct {v9, v7, v4, v10, v5}, Lcom/esfile/screen/recorder/picture/pngj/c;-><init>(IIIZ)V

    invoke-direct {v1, v8, v9}, Lcom/esfile/screen/recorder/picture/pngj/h;-><init>(Ljava/io/File;Lcom/esfile/screen/recorder/picture/pngj/c;)V

    const/4 v8, -0x1

    .line 55
    invoke-virtual {v1, v8}, Lcom/esfile/screen/recorder/picture/pngj/h;->a(I)V

    .line 56
    sget-object v8, Lcom/esfile/screen/recorder/picture/pngj/FilterType;->FILTER_NONE:Lcom/esfile/screen/recorder/picture/pngj/FilterType;

    invoke-virtual {v1, v8}, Lcom/esfile/screen/recorder/picture/pngj/h;->a(Lcom/esfile/screen/recorder/picture/pngj/FilterType;)V
    :try_end_0
    .catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0

    .line 57
    new-array v14, v7, [I

    .line 58
    new-instance v13, Lcom/esfile/screen/recorder/picture/pngj/e;

    iget-object v8, v1, Lcom/esfile/screen/recorder/picture/pngj/h;->a:Lcom/esfile/screen/recorder/picture/pngj/c;

    invoke-direct {v13, v8, v14}, Lcom/esfile/screen/recorder/picture/pngj/e;-><init>(Lcom/esfile/screen/recorder/picture/pngj/c;[I)V

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v12, 0x0

    .line 59
    :goto_8
    invoke-interface/range {p2 .. p2}, Ljava/util/List;->size()I

    move-result v10

    if-ge v12, v10, :cond_d

    .line 60
    invoke-interface {v2, v12}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Landroid/util/Pair;

    move-object/from16 v11, p2

    .line 61
    invoke-interface {v11, v12}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v16

    check-cast v16, Ljava/lang/String;

    .line 62
    invoke-static/range {v16 .. v16}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v5

    .line 63
    invoke-interface {v6, v12}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v16

    check-cast v16, Ljava/lang/Float;

    invoke-virtual/range {v16 .. v16}, Ljava/lang/Float;->floatValue()F

    move-result v2

    move-object/from16 v16, v6

    .line 64
    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v6

    int-to-float v6, v6

    mul-float v6, v6, v2

    float-to-int v6, v6

    move/from16 p1, v8

    .line 65
    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v8

    int-to-float v8, v8

    mul-float v8, v8, v2

    float-to-int v8, v8

    move/from16 v18, v12

    const/4 v12, 0x0

    .line 66
    invoke-static {v5, v6, v8, v12}, Landroid/graphics/Bitmap;->createScaledBitmap(Landroid/graphics/Bitmap;IIZ)Landroid/graphics/Bitmap;

    move-result-object v6

    .line 67
    invoke-virtual {v6}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v8

    const/16 v17, 0x0

    .line 68
    iget-object v12, v10, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v12, Ljava/lang/Integer;

    invoke-virtual {v12}, Ljava/lang/Integer;->intValue()I

    move-result v20

    .line 69
    iget-object v12, v10, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v12, Ljava/lang/Integer;

    invoke-virtual {v12}, Ljava/lang/Integer;->intValue()I

    move-result v12

    iget-object v10, v10, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v10, Ljava/lang/Integer;

    invoke-virtual {v10}, Ljava/lang/Integer;->intValue()I

    move-result v10

    sub-int/2addr v12, v10

    .line 70
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    move/from16 v21, v9

    const-string v9, "scaleRatio:"

    invoke-virtual {v10, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v15, v2}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 71
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, "scaled width:"

    invoke-virtual {v2, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v15, v2}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    move/from16 v2, p1

    move/from16 v10, v21

    const/4 v9, 0x0

    :goto_9
    if-ge v9, v12, :cond_a

    const/16 v21, 0x0

    add-int v22, v20, v9

    const/16 v23, 0x1

    move/from16 v24, v8

    move-object v8, v6

    move/from16 v25, v9

    move-object v9, v14

    move/from16 v26, v10

    move/from16 v10, v21

    move v11, v7

    move/from16 v19, v12

    const/16 v21, 0x0

    move/from16 v12, v17

    move-object/from16 v27, v13

    move/from16 v13, v22

    move-object/from16 v28, v14

    move/from16 v14, v24

    move-object/from16 v22, v15

    move/from16 v15, v23

    .line 72
    invoke-virtual/range {v8 .. v15}, Landroid/graphics/Bitmap;->getPixels([IIIIIII)V

    move-object/from16 v9, v27

    move-object/from16 v8, v28

    .line 73
    invoke-static {v9, v8}, Lcom/esfile/screen/recorder/picture/pngj/d;->a(Lcom/esfile/screen/recorder/picture/pngj/e;[I)V

    .line 74
    invoke-virtual {v1, v9}, Lcom/esfile/screen/recorder/picture/pngj/h;->a(Lcom/esfile/screen/recorder/picture/pngj/b;)V

    if-eqz v3, :cond_8

    add-int/lit8 v2, v2, 0x1

    mul-int/lit8 v10, v2, 0x64

    .line 75
    div-int/2addr v10, v4

    move/from16 v11, v26

    if-eq v10, v11, :cond_9

    .line 76
    invoke-interface {v3, v10}, Les/hb$a;->a(I)V

    goto :goto_a

    :cond_8
    move/from16 v11, v26

    :cond_9
    move v10, v11

    :goto_a
    add-int/lit8 v11, v25, 0x1

    move-object v14, v8

    move-object v13, v9

    move v9, v11

    move/from16 v12, v19

    move-object/from16 v15, v22

    move/from16 v8, v24

    move-object/from16 v11, p2

    goto :goto_9

    :cond_a
    move v11, v10

    move-object v9, v13

    move-object v8, v14

    move-object/from16 v22, v15

    const/16 v21, 0x0

    .line 77
    invoke-virtual {v6}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v10

    if-nez v10, :cond_b

    .line 78
    invoke-virtual {v6}, Landroid/graphics/Bitmap;->recycle()V

    .line 79
    :cond_b
    invoke-virtual {v5}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v6

    if-nez v6, :cond_c

    .line 80
    invoke-virtual {v5}, Landroid/graphics/Bitmap;->recycle()V

    :cond_c
    add-int/lit8 v12, v18, 0x1

    move-object v14, v8

    move-object v13, v9

    move v9, v11

    move-object/from16 v6, v16

    move-object/from16 v15, v22

    const/4 v5, 0x0

    move v8, v2

    move-object/from16 v2, p3

    goto/16 :goto_8

    .line 81
    :cond_d
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/picture/pngj/h;->b()V

    .line 82
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/picture/pngj/h;->a()V

    .line 83
    iget-object v1, v0, Les/hb;->b:Ljava/lang/String;

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/i;->i(Ljava/lang/String;)V

    .line 84
    iget-object v1, v0, Les/hb;->b:Ljava/lang/String;

    return-object v1

    :catch_0
    const/4 v1, 0x0

    return-object v1
.end method

.method private a(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "*>;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    if-eqz p1, :cond_2

    const/4 v0, 0x0

    .line 85
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_1

    .line 86
    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    if-eqz v1, :cond_0

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 87
    :cond_0
    new-instance p1, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "The element index="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, " in the list is null"

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_1
    return-void

    .line 88
    :cond_2
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "list should not be null!"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method


# virtual methods
.method public a(Ljava/util/List;Ljava/util/List;)Ljava/lang/String;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/List<",
            "Landroid/util/Pair<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Integer;",
            ">;>;)",
            "Ljava/lang/String;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 3
    invoke-virtual {p0, p1, p2, v0}, Les/hb;->a(Ljava/util/List;Ljava/util/List;Les/hb$a;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public a(Ljava/util/List;Ljava/util/List;Les/hb$a;)Ljava/lang/String;
    .locals 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/List<",
            "Landroid/util/Pair<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Integer;",
            ">;>;",
            "Les/hb$a;",
            ")",
            "Ljava/lang/String;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .line 4
    invoke-direct {p0, p1}, Les/hb;->a(Ljava/util/List;)V

    .line 5
    invoke-direct {p0, p2}, Les/hb;->a(Ljava/util/List;)V

    .line 6
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v1

    if-ne v0, v1, :cond_8

    .line 7
    iget-object v0, p0, Les/hb;->b:Ljava/lang/String;

    if-eqz v0, :cond_7

    .line 8
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 9
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 10
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const/4 v3, 0x0

    const/4 v4, 0x0

    .line 11
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v5

    if-ge v4, v5, :cond_5

    .line 12
    invoke-interface {p1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/String;

    .line 13
    new-instance v6, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v6}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    const/4 v7, 0x1

    .line 14
    iput-boolean v7, v6, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    .line 15
    invoke-static {v5, v6}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    .line 16
    iget v7, v6, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    if-eqz v7, :cond_4

    iget v7, v6, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    if-nez v7, :cond_0

    goto :goto_1

    .line 17
    :cond_0
    invoke-interface {p2, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Landroid/util/Pair;

    .line 18
    new-instance v8, Lcom/esfile/screen/recorder/media/util/y;

    iget v9, v6, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    iget v6, v6, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    invoke-direct {v8, v9, v6}, Lcom/esfile/screen/recorder/media/util/y;-><init>(II)V

    .line 19
    iget-object v6, v7, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v6, Ljava/lang/Integer;

    invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I

    move-result v6

    .line 20
    iget-object v7, v7, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v7, Ljava/lang/Integer;

    invoke-virtual {v7}, Ljava/lang/Integer;->intValue()I

    move-result v7

    if-le v6, v7, :cond_1

    move v10, v7

    move v7, v6

    move v6, v10

    :cond_1
    if-gez v6, :cond_2

    const/4 v6, 0x0

    .line 21
    :cond_2
    invoke-virtual {v8}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v9

    if-le v7, v9, :cond_3

    .line 22
    invoke-virtual {v8}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v7

    .line 23
    :cond_3
    invoke-interface {v2, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 24
    invoke-interface {v0, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 25
    new-instance v5, Landroid/util/Pair;

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-direct {v5, v6, v7}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-interface {v1, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 26
    :cond_4
    :goto_1
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "imgPath "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, "can not decode"

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const-string v6, "BitmapMingler"

    invoke-static {v6, v5}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    :goto_2
    add-int/lit8 v4, v4, 0x1

    goto/16 :goto_0

    .line 27
    :cond_5
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result p1

    if-nez p1, :cond_6

    const/4 p1, 0x0

    return-object p1

    .line 28
    :cond_6
    invoke-direct {p0, v2, v0, v1, p3}, Les/hb;->a(Ljava/util/List;Ljava/util/List;Ljava/util/List;Les/hb$a;)Ljava/lang/String;

    move-result-object p1

    return-object p1

    .line 29
    :cond_7
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string p2, "You should set target image path first."

    invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 30
    :cond_8
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string p2, "Bitmap\'s list size should equals to topBottom\'s list."

    invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    goto :goto_4

    :goto_3
    throw p1

    :goto_4
    goto :goto_3
.end method

.method public a(I)V
    .locals 0

    mul-int/lit16 p1, p1, 0x400

    mul-int/lit16 p1, p1, 0x400

    .line 1
    div-int/lit8 p1, p1, 0x2

    iput p1, p0, Les/hb;->a:I

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    .line 2
    iput-object p1, p0, Les/hb;->b:Ljava/lang/String;

    return-void
.end method
